package cn.bdqn.commponent;


import cn.bdqn.domain.Recipe;
import cn.bdqn.domain.Registration;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class DoctorMQReceiveDirectHandel {

    @RabbitListener(queues = "DOCTOR-Queue")//监听队列
    @RabbitHandler//处理
    public void getRecipe(String msg){
        System.out.println(msg);
    }
}
